package com.idcard.huashi;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

public class SuccessFragment extends Fragment {
    private View view;
    private ImageView img_btn;
    private TextView btn_continue;//继续填写
    private static final String TAG = "Zysoft";
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        img_btn = (ImageView) getActivity().findViewById(R.id.img_btn);
        img_btn.setVisibility(View.GONE);
        view = inflater.inflate(R.layout.success, container, false);
        btn_continue = (TextView) view.findViewById(R.id.btn_continue);//继续填写
        initEvent();
        return view;
    }
    //事件点击
    private void initEvent() {
        // TODO Auto-generated method stub
        btn_continue.setOnClickListener(new View.OnClickListener() {
            @Override
            // 继续填写
            public void onClick(View view) {
                Log.d("zysoft","你选择了继续填写");
                Intent intent = new Intent(getActivity(),MainActivity.class);
                intent.putExtra("id", 2);
                startActivity(intent);
                getActivity().finish();
            }
        });

    }
}
